package com.yuchting.dinneronline.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("mainPage")
public interface MainService extends RemoteService {
	
	public String logonServer(String _name,String _pass)throws Exception;
	public String changePassword(String _name,String _orgPass,String _newPass)throws Exception;
	
	public String getConfig()throws Exception;
	public String setConfig(String _configJSON)throws Exception;
	
	public String getCurrOrderList(String _name)throws Exception;
	public String getFormerOrderList(String _name)throws Exception;
	public String getCurrDinnerList()throws Exception;
	
	public String addOrder(String _username,String _dinner)throws Exception;
	public String delOrder(String _username,long _orderTime)throws Exception;
	
	public String delDinner(String _name)throws Exception;
	public String addDinner(String _dinnerJSON)throws Exception;
	public String modifyDinner(String _name,String _dinnerJSON)throws Exception;
	
	public String getCurrUserList()throws Exception;
	public String delUser(String _username)throws Exception;
	public String addUser(String _userJSON)throws Exception;
	public String modifyUser(String _userJSON)throws Exception;
	
	public String getCurrOrderOutList()throws Exception;
	public String checkOrderOutList(long _time)throws Exception;
	
	public String commentOrder(String _user,String _commnet,byte[] _rank,long _orderTime)throws Exception;
	
}
